<?php
/**
 * Created by PhpStorm.
 * User: Victor
 * Date: 2018/8/14
 * Time: 13:28
 */

namespace app\index\model;


use think\Model;

class OrderJl extends Model
{
    // 表名
    protected $table = 'order_jl';

    public function yonghu()
    {
        return $this->belongsTo('Yonghu', 'yh_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
    public function baodanzt()
    {
        return $this->belongsTo('BaodanZt', 'baodan_bz', 'id', [], 'LEFT')->setEagerlyType(0);
    }
    public function kaipinglb()
    {
        return $this->belongsTo('KaipingLb', 'kp_lb', 'id', [], 'LEFT')->setEagerlyType(0);
    }
    public function heyue()
    {
        return $this->belongsTo('Heyue', 'heyue_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}